package com.iqiyi.pps.epg.core.model.program;

/**
 * Created by karkarrotxu on 2016/10/26.
 */
public class SnapChangeAssist {
    private boolean change =false;
    private String originalSign = null;
    public SnapChangeAssist(ProgramData programData){
        originalSign = accountSign(programData);
    }

    private String accountSign(ProgramData programData){
        return  programData.getStartPlayTime().getTime()+"|"+programData.getStopPlayTime().getTime()+"|"+programData.getSnapShotType()+"|"+programData.getSnapShotGap();
    }

    public void checkAgain( ProgramData programData){
        String newSign =accountSign( programData);
        change = !originalSign.equals(newSign);
    }

    public boolean isChange(){
        return change;
    }
}
